/**
 * Copyright &copy; 2012-2015 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.sys.utils;

import java.util.List;

import com.google.common.collect.Lists;
import com.soccer.cms.common.utils.SpringContextHolder;

import com.soccer.cms.modules.sys.entity.Dictinfo;
import com.soccer.cms.modules.sys.dao.DictinfoDao;

/**
 * 字典信息Utils
 * @author zouqh
 * @version 2015-05-25
 */
public class DictinfoUtils {

	private static DictinfoDao dictinfoDao = SpringContextHolder.getBean(DictinfoDao.class);
	
	public static Dictinfo getDictinfo(String id) {
		return dictinfoDao.get(id);
	}
	
	public static List<Dictinfo> getDictinfoList() {
		List<Dictinfo> dictinfos = null;
		Dictinfo dictinfo = new Dictinfo();
		dictinfos = dictinfoDao.findList(dictinfo);
		if(dictinfos == null){
			dictinfos = Lists.newArrayList();
		}
		return dictinfoDao.findList(dictinfo);
	}
	
	
}